package com.ruoyi.project.modules.table.domain;

import java.util.List;
import java.util.Set;

import com.ruoyi.project.modules.userDataAuth.domain.UserDataAuth;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 类对象信息对象 t_table_info
 * 
 * @author smallrain
 * @date 2021-10-28
 */
public class TableInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 表名称 */
    @Excel(name = "表名称")
    private String tableName;

    /** 表英文名称 */
    @Excel(name = "表英文名称")
    private String tableEnName;
    private String tableRelationInfo;

    private String aliasName;

    /** 表说明 */
    @Excel(name = "表说明")
    private String tableDescription;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    private Boolean flag = false;

    private Set<Long> tableIds;

    private int authflag = 0;

    private Long userId;

    private String username;

    private List<Long> excludeIds;

    private String objectStatus;

    private List<UserDataAuth> userList;

    private Long productId;

    private String isEncry;

    public String getAliasName() {
        return aliasName;
    }

    public void setAliasName(String aliasName) {
        this.aliasName = aliasName;
    }

    public String getTableRelationInfo() {
        return tableRelationInfo;
    }

    public void setTableRelationInfo(String tableRelationInfo) {
        this.tableRelationInfo = tableRelationInfo;
    }

    public List<Long> getExcludeIds() {
        return excludeIds;
    }

    public void setExcludeIds(List<Long> excludeIds) {
        this.excludeIds = excludeIds;
    }

    public int getAuthflag() {
        return authflag;
    }

    public void setAuthflag(int authflag) {
        this.authflag = authflag;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Set<Long> getTableIds() {
        return tableIds;
    }

    public void setTableIds(Set<Long> tableIds) {
        this.tableIds = tableIds;
    }

    public Boolean getFlag() {
        return flag;
    }

    public void setFlag(Boolean flag) {
        this.flag = flag;
    }

    /** 字段信息信息 */
    private List<FieldInfo> fieldInfoList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTableName(String tableName) 
    {
        this.tableName = tableName;
    }

    public String getTableName() 
    {
        return tableName;
    }
    public void setTableEnName(String tableEnName) 
    {
        this.tableEnName = tableEnName;
    }

    public String getTableEnName() 
    {
        return tableEnName;
    }
    public void setTableDescription(String tableDescription) 
    {
        this.tableDescription = tableDescription;
    }

    public String getTableDescription() 
    {
        return tableDescription;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public List<FieldInfo> getFieldInfoList()
    {
        return fieldInfoList;
    }

    public void setFieldInfoList(List<FieldInfo> fieldInfoList)
    {
        this.fieldInfoList = fieldInfoList;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getObjectStatus() {
        return objectStatus;
    }

    public void setObjectStatus(String objectStatus) {
        this.objectStatus = objectStatus;
    }

    public List<UserDataAuth> getUserList() {
        return userList;
    }

    public void setUserList(List<UserDataAuth> userList) {
        this.userList = userList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tableName", getTableName())
            .append("tableEnName", getTableEnName())
            .append("tableDescription", getTableDescription())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("fieldInfoList", getFieldInfoList())
            .toString();
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getIsEncry() {
        return isEncry;
    }

    public void setIsEncry(String isEncry) {
        this.isEncry = isEncry;
    }
}
